import {NameActions} from '../actions';
import {SET_NAME} from "../consts";
import {IStoreState} from "../types";

export function setName(state: IStoreState, action: NameActions): IStoreState {
    switch (action.type) {
        case SET_NAME:
            return {
                ...state,
                // name: action.payload,
            }
    }
    return state;
}
